package com.zc.study.thread.线程的基础使用;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ThreadDemo1 extends Thread{
    private  final Logger logger = LoggerFactory.getLogger(this.getClass());
    public void run(){
        logger.debug(Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        ThreadDemo1 one = new ThreadDemo1();
//        Thread one = new Thread(on);
        one.setName("自定义线程1,我是通过集成类的方式实现的");
        one.start();
        System.out.println(Thread.currentThread().toString());
    }
}
